@echo off

rem set strClasPath=.

for /F "tokens=*" %g in ('dir /b') do set strClasPath=%strClasPath%;%%g
@echo %strClasPath%
pause